#!/bin/bash
source tools/const.sh

if [ -h "$LINK_FILE" ]; then
    echo " $LINK_FILE  配置文件正确✅ "
    ls -all "$LINK_FILE"
    # shellcheck disable=SC2012
    ret=$(ls -l "$LINK_FILE"| awk '{print $NF}')
    echo -e "当前配置文件软连的实际地址：$GREEN$ret$RESET"
else
    echo  -e "$RED $LINK_FILE  配置文件不存在请创建软连 $RESET"
    tools/create_conf_file.sh
fi